/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.github.oldtoys.springboot.hazelcast.session;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 *
 * @author Administrator
 */
@SpringBootApplication
public class Application {

    /**
     * Set to {@code true} to use Hazelcast for distributed session storage. Or,
     * {@code false} to turn off Hazelcast and use the default Tomcat
     * non-distributed implementation.
     *
     * This is a constant rather than a parameter to ensure all instances run
     * with the same setting.
     */
    public static final String USE_HAZELCAST = "true";

    /**
     * Run the application under Spring Boot control.
     *
     * @param args From the command line
     */
    public static void main(String[] args) {
        SpringContextUtil sch = new SpringContextUtil();
        sch.setApplicationContext(SpringApplication.run(Application.class, args));
//        ctx.getBean(USE_HAZELCAST);

    }
}
